﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T4Template.Dto
{
    public class AttributeModelDto
    {
        public int Id { get; set; }
        public ClassModelDto ClassModel { get; set; }
        public string Name { get; set; }
        public bool Display { get; set; }
        public bool Search { get; set; }
        public bool SearchResult { get; set; }
        public string DataType { get; set; }
        public string FieldDescription { get; set; }
        public string Label { get; set; }
        public string FieldType { get; set; }
        public int Length { get; set; }
        public bool Autokey { get; set; }
        public bool Nullable { get; set; }
        public bool Pk { get; set; }
        public int SeqNo { get; set; }
        public int DisplayLengthInGrid { get; set; }

        public bool EdtitLinkField
        {
            get
            {
                return this.Pk == true;
            }
        }
    }
}
